<template>
	<view class="container">
		<u-navbar title="使用规则"></u-navbar>
		<view class="pad-base">
			<jyf-parser :html="rule.value"></jyf-parser>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				rule: {
					value: ''
				}
			}
		},
		onLoad() {
			this.loadData()
		},
		methods: {
			async loadData() {
				try{
					this.rule = await this.$dbHelper.getOne('t3ds-system-config', {
						where: `key == 'integralRule'`
					})
				}catch(e){
					console.error(e)
				}
			}
		}
	}
</script>

<style>

</style>
